﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SkeletonNET.Common.Setup;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Unity;
using System.Resources;

namespace SkeletonNET.Localizer.Tests.CustomResourceProvider
{
    [TestClass]
    public class TestProvider
    {
        [TestMethod]
        public void TestMethod1()
        {
            Bootstrapper.Current
                .SetupIoC()
                .SetupModules();

            ServiceLocator.Current
                .GetInstance<IUnityContainer>()
                .RegisterType<ResourceManager, CustomResourceManager>();

            var rm = ServiceLocator.Current.GetInstance<ResourceManager>();
            var testje = rm.GetString("test");

            Assert.IsTrue(testje == "test123");
        }
    }
}
